package proxy;

/**
 * @author wcj
 * @Date 2021/6/22 21:19
 * @Version 1.0
 */
public class RealSubject implements Pursuit {

 private SchoolGirl schoolGirl;

 public RealSubject(SchoolGirl schoolGirl) {
  this.schoolGirl = schoolGirl;
 }

 @Override
 public void giveFlower() {
  System.out.println("送花给:" + schoolGirl);
 }

 @Override
 public void giveDolls() {
  System.out.println("送洋娃娃给:" + schoolGirl);
 }

 @Override
 public void giveChocolate() {
  System.out.println("送巧克力给:" + schoolGirl);
 }
}
